﻿@model ZJK.Models.ExtractManage.vmStep1
@{
    ViewBag.Title = "专家抽取-项目选择";
}
<script type="text/javascript" src="@Url.Content("~/Scripts/extract.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/CategoryTreeOperation.js")"></script>
<script type="text/javascript">
    //定义删除抽取记录的地址
    var strUrldeleteAExtract = '@Url.Content("~/Extract/DeleteExtract")';
    //定义删除抽取记录的地址
    var strUrlgetStep1Projects = '@Url.Content("~/Extract/GetStep1Projects")';
</script>
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("NewExtract", "Extract", FormMethod.Post, new { id = "formOP" }))
{
    @Html.HiddenFor(model => model.selectedProjectIDs, new { @id = "selectedProjectIDs" })

<div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
    <div style="position: relative;">
        <div style="position: relative; width: 25%; float: left;">
        </div>
        <div style="position: relative; width: 25%; float: right;">
            <div class="ui-corner-all" style="padding: 0.7em;">
            </div>
        </div>
        <div style="position: relative; margin-left: 25%; margin-right: 25%;">
            <a href="javascript:step1NewExtractRecord()" class="btn">
                <span class="ui-icon ui-icon-circle-triangle-e"
                      style="float: left; margin-right: .3em;"></span>为勾选的项目新建抽取记录
            </a>
        </div>
        <div class="clear">
        </div>
    </div>

    <div style="position: relative; margin: 0.7em 0;">
        <div style="position: relative; width: 25%; float: left;">
            <div class="ui-widget-header ui-corner-all" style="padding: 0.7em;">
                <b>2、专家抽取项目关联项目列表：</b>
            </div>
        </div>
        <div style="position: relative; width: 25%; float: right;">
            <div class="ui-corner-all" style="padding: 0.7em;">
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                勾选项目，将本次抽取记录关联勾选的项目评标评委信息；
                <p>
                    <b>注意：</b>如果勾选的项目已存在专家抽取信息，当前抽取信息将被作为新的抽取记录保存在项目专家抽取记录中。
                </p>
            </div>
        </div>
        <div style="position: relative; margin-left: 25%; margin-right: 25%;">
            <div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
                <div>
                    请勾选以下项目：
                </div>
                <div id="project_list" style="height: 400px; overflow: scroll;">
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div style="position: relative; margin: 0.7em 0; visibility:hidden;">
        <div style="position: relative; width: 25%; float: left;">
            <div class="ui-widget-header ui-corner-all" style="padding: 0.7em;">
                <b>1、项目名称查询条件：</b>
            </div>
        </div>
        <div style="position: relative; width: 25%; float: right;">
            <div class="ui-corner-all" style="padding: 0.7em;">
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                输入项目编号或项目名称查询条件，进行模糊查询；
                <span id="sdd"></span>
            </div>
        </div>
        <div style="position: relative; margin-left: 25%; margin-right: 25%;">
            <div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
                <input id="queryStringProject" type="text" style="width: 200px" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:getStep1Projects(strUrlgetStep1Projects);" class="btn">
                    <span class="ui-icon ui-icon-search" style="float: left; margin-right: .3em;"></span>搜索
                </a>

            </div>
        </div>
        <div class="clear">
        </div>
    </div>

    <script type="text/javascript">
                // 初始化折叠控件
                $("#queryStringProject").val("院采购项目");
                getStep1Projects('@Url.Content("~/Extract/GetStep1Projects")');
    </script>
</div>
}
